package com.sqx.modules.banArea.controller;

import com.sqx.common.utils.Result;
import com.sqx.modules.banArea.entity.BanArea;
import com.sqx.modules.banArea.service.IBanAreaService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 *  禁止区域-用户端
 *
 * @author wuChang
 * @since 2023-08-28
 */
@RestController
@Api(value = "禁止区域-用户端", tags = {"禁止区域-用户端"})
@RequestMapping("/app/banArea/")
public class AppBanAreaController {
    @Autowired
    private IBanAreaService banAreaService;


    @ApiOperation("获取禁止区域列表")
    @GetMapping("getBanAreaList")
    public Result getBanAreaList(Integer page, Integer limit, BanArea banArea) {
        banArea.setIsEnable(1);
        return Result.success().put("data", banAreaService.getBanAppAreaList(page, limit, banArea));
    }



}
